package ds.factcom.model;

import java.util.List;

import javax.swing.table.AbstractTableModel;

@SuppressWarnings("serial")
public class MountTableModel extends AbstractTableModel {

	private final List<Object> listData;
	
	public MountTableModel(InvoiceModel invoiceModel) {
		listData = invoiceModel.getListData();
	}

	@Override
	public int getColumnCount() {
		return 2;
	}

	@Override
	public int getRowCount() {
		return 2;
	}

	@Override
	public Object getValueAt(int rowIndex, int columnIndex) {
		return this.listData.get(columnIndex + rowIndex);
	}
}
